<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-publishManagement-edit" th:object="${publishManagement}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">操作人：</label>
                <div class="col-sm-8">
                    <input id="operator" name="operator" th:field="*{operator}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">操作类型：</label>
                <div class="col-sm-8">
                  <!--   <input id="operationType" name="operationType" th:field="*{operationType}" class="form-control" type="text"> -->
                   <select id="operationType" class="form-control m-b" th:with="type=${@dict.getType('gh_operation_type')}">
	                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{operationType}"></option>
	                </select>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">操作结果：</label>
                <div class="col-sm-8">
                   <!--  <input id="operationResult" name="operationResult" th:field="*{operationResult}" class="form-control" type="text"> -->
                    <select id="operationResult" class="form-control m-b" th:with="type=${@dict.getType('gh_operation_result')}">
	                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{operationResult}"></option>
	                </select>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">操作说明：</label>
                <div class="col-sm-8">
                    <input id="instructions" name="instructions" th:field="*{instructions}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">唯一识别码：</label>
                <div class="col-sm-8">
                    <input id="uid" name="uid" th:field="*{uid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">厂商编码：</label>
                <div class="col-sm-8">
                   <!--  <input id="gardenNo" name="gardenNo" th:field="*{gardenNo}" class="form-control" type="text"> -->
                     <select id="gardenNo" name="gardenNo"  class="form-control m-b" th:with="type=${@garden.getGarden()}">
	                    <option th:each="garden : ${type}" th:text="${garden.gardenName+garden.teaGardenNo}" th:value="${garden.teaGardenNo}" th:field="*{gardenNo}"></option>
	                </select>
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">溯源码：</label>
                <div class="col-sm-8">
                    <input id="productCode" name="productCode" th:field="*{productCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">操作日期：</label>
                <div class="col-sm-8">
                    <input id="operationDate" name="operationDate" th:field="*{operationDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/publishManagement"
		$("#form-publishManagement-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-publishManagement-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
